#!/bin/sh

CGRY="\\#b3b3b3\\"
CYEL="\\#DEF000\\"
CORG="\\#FDA53C\\"
CBLU="\\#66a9ba\\"
CRED="\\#CC8080\\"
CGRE="\\#A7BF76\\"
while true; do
        HOSTNAME="$(hostname | tr '[a-z]' '[A-Z]')"
        DF_HOME="$(df /home | awk '/^\//{print $5}')"
        DF_ROOT="$(df / | awk '/^\//{print $5}')"
        LOAD_AVG="$(uptime)"
        CORE_TEMP="$(sensors | awk '/temp1/{print $2;exit}')"
        /usr/bin/wmfs -s 0 "$CGRY $CRED$HOSTNAME$CGRY: $CGRY$LOAD_AVG $CORE_TEMP$CORG DSK: /: $CBLU$DF_ROOT$CORG /home: $CBLU$DF_HOME$CGRY $CGRE$(date +'%Y-%m-%d %a %H:%M')$CGRY"
        /usr/bin/wmfs -s 1 ""
        sleep 5
done
